home *** CD-ROM | disk | FTP | other *** search
- function switchService(service,domain,ydomain,startaddress,nodelat,nodelng,nodeurl,nodetitle,nodeaddress,nodedescription){
- var url = service;
- switch (url) {
- case "google-to":
- url = "http://"+domain+"/maps?daddr="+nodeaddress;
- break;
- case "yahoo-to":
- url = "http://"+ydomain+"/dd?taddr="+nodeaddress;
- break;
- case "microsoft-to":
- url = "http://local.live.com/default.aspx?rtp=adr.~adr."+nodeaddress
- break;
- case "multimap-to":
- url = "http://multimap.com/?daddr="+nodeaddress
- break;
- case "mapquest-to":
- url = "http://mapquest.com/?daddr="+nodeaddress
- break;
- case "google-from":
- url = "http://"+domain+"/maps?saddr="+nodeaddress;
- break;
- case "yahoo-from":
- url = "http://"+ydomain+"/dd?addr="+nodeaddress;
- break;
- case "microsoft-from":
- url = "http://local.live.com/default.aspx?rtp=adr."+nodeaddress
- break;
- case "google-to-my":
- url = "http://"+domain+"/maps?saddr="+nodeaddress+"&daddr="+startaddress;
- break;
- case "yahoo-to-my":
- url = "http://"+ydomain+"/dd?taddr="+startaddress+"&addr="+nodeaddress;
- break;
- case "microsoft-to-my":
- url = "http://local.live.com/default.aspx?rtp=adr."+nodeaddress+"~adr."+startaddress;
- break;
- case "google-from-my":
- url = "http://"+domain+"/maps?saddr="+startaddress+"&daddr="+nodeaddress;
- break;
- case "yahoo-from-my":
- url = "http://"+ydomain+"/dd?addr="+startaddress+"&taddr="+nodeaddress;
- break;
- case "microsoft-from-my":
- url = "http://local.live.com/default.aspx?rtp=adr."+startaddress+"~adr."+nodeaddress;
- break;
- case "tagzania-post":
- url = "http://www.tagzania.com/post?lat="+nodelat+"&long="+nodelng+"&resources="+nodeurl+"&title="+nodetitle+"&desc="+nodedescription;
- break;
- case "tagzania-nearby":
- url = "http://www.tagzania.com/near/"+nodelat+"/"+nodelng;
- break;
- case "platial-places":
- url = "http://platial.com/where?where="+nodeaddress;
- break;
- case "platial-add":
- url = "http://www.platial.com/platialgrabber?place="+nodeaddress;
- break;
- case "google-earth":
- url = "http://"+domain+"/maps?q="+nodeaddress+"&output=kml";
- break;
- case "localize":
- url = "http://loc.alize.us/#/geo:" + nodelat + "," + nodelng + ",11";
- break;
- case "geonames":
- url = "http://www.geonames.org/maps/google_"+ nodelat +"_"+ nodelng +".html";
- break;
- case "geourl":
- url = "http://geourl.org/near/?lat="+ nodelat + ",&lon=" + nodelng +"&dist=40";
- break;
- case "google":
- url = "http://"+domain+"/maps?q="+nodeaddress
- break;
- case "yahoo":
- url = "http://"+ydomain+"/maps_result.php?q1="+nodeaddress
- break;
- case "microsoft":
- url = "http://local.live.com/default.aspx?&where1="+nodeaddress
- break;
- case "geody":
- url = "http://www.geody.com/geolook.php?world=terra&q="+nodelat+","+nodelng;
- break;
- case "flickr":
- url = "http://www.flickr.com/map/?&tag=&m=text&fLat="+nodelat+"&fLon="+nodelng+"&zl=6&map_type=sat";
- break;
- case "panoramio":
- url = "http://www.panoramio.com/map/#lt="+nodelat+"&ln="+nodelng+"&z=4&k=2&a=1";
- break;
- case "upcoming":
- url = "http://upcoming.yahoo.com/place/?loc="+nodeaddress;
- break;
- case "self":
- url = nodeurl;
- break;
- }
- return url;
- }